package com.wade.demo.springbootnutz.web;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.wade.demo.springbootnutz.domain.entity.Gateway;
import com.wade.demo.springbootnutz.service.GatewayService;

/**
 *
 * @company: creekspring
 * @author wdChen
 * @date:2017-09-15 13:56:15
 * @Description:
 */
@RestController
@RequestMapping("/api/v1/gateways")
public class GatewayController {

  @Autowired
  private GatewayService gatewayService;

  @GetMapping(path = "")
  public List<Gateway> listAll() {
    return gatewayService.listAll();
  }
}
